package com.itheima.enumdemo;

import java.time.Month;

public class Demo02 {

    public static void main(String[] args) {
        Season.SPRING.lang();
        Season.SPRING.sleep();
        Season season = Season.SUMMER;
        switch (season){
            case SPRING :
                System.out.println("春");
               break;
            case SUMMER:
                System.out.println("夏");
                break;
            case AUTUMN:
                System.out.println("秋");
                break;
            case WINTER:
                System.out.println("冬");
                break;

       }

        Season[] values = Season.values();
        for (Season value : values) {
            System.out.println(value);
        }
        System.out.println(Season.SPRING);
        Season spring = Enum.valueOf(Season.class, "SPRING");
        Season spring1 = Season.SPRING;
    }
}
